// 定义静态路由, 不嵌套在layout内

export const staticRoutes = [
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登陆",
    },
  },
  {
    path: "/404",
    name: "404",
    component: () => import("@/views/error/404.vue"),
    meta: {
      title: "找不到此页面",
    },
  },
  {
    path: "/403",
    name: "403",
    component: () => import("@/views/error/403.vue"),
    meta: {
      title: "没有权限",
    },
  },
];

// 定义404界面
export const pathMatch = {
  path: "/:path(.*)*",
  redirect: {
    name: "404",
  },
};
